using System;
using System.Collections.Generic;
using System.Text;

namespace LabMS.Model
{
    public class VoteJson
    {
        private int id;
        private string title;
        private int limit;
        private List<VoteItemJson> items;

        public int ID { get { return id; } set { id = value; } }

        public String Title { get { return title; } set { title = value; } }

        public Int32 Limit { get { return limit; } set { limit = value; } }

        public List<VoteItemJson> Items { get { return items; } set { items = value; } }
    }

    public class VoteItemJson
    {
        private int id;

        private string title;

        private List<VoteAnswerJson> answers;

        public int ID { get { return id; } set { id = value; } }

        public string Title { get { return title; } set { title = value; } }

        public List<VoteAnswerJson> Answers { get { return answers; } set { answers = value; } }
    }

    public class VoteAnswerJson
    {
        private int id;

        private string name;

        public int ID { get { return id; } set { id = value; } }

        public String Name { get { return name; } set { name = value; } }
    }
}
